package com.szty.libarytest.other

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.szty.libarytest.R
import com.szty.libarytest.fragment.Blank1Fragment
import com.szty.libarytest.fragment.Blank2Fragment
import kotlinx.android.synthetic.main.activity_fragment_test.*

class FragmentTestActivity : AppCompatActivity() {
    private val scanName = arrayListOf("第一步", "第二步")
    private val fragments by lazy {
        mutableListOf(
            Blank1Fragment.newInstance("1","2"),
            Blank2Fragment.newInstance("1","2")
        )
    }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_fragment_test)
        vp_connect_pen.setBaseAdapter(supportFragmentManager, fragments)

    }
}